MKDIR

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

mkdir - make a directory  

SYNOPSIS

#include <unistd.h>

int mkdir(const char *path, unsigned int mode);
 

DESCRIPTION

The routine mkdir creates a new directory with the name path. The mode of the new directory is initialized from the mode. The protection part of the mode argument is modified by the process's mode mask (see umask). The directory's owner ID is set to the process's effective user ID. The directory's group ID is set to the process's effective group ID. The newly created directory is empty except for the entries '.' and  

RETURN VALUES


 0 upon successfull completion. -1 on error; errno is set to indicate the error.  

SEE ALSO

rmdir(3), Dcreate(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 11:14:41 GMT, June 22, 2025